package org.dawn.deveco.plugin.resourceeditor.window;

import com.intellij.ui.components.JBLabel;
import com.intellij.ui.components.JBPanel;
import org.dawn.deveco.plugin.resourceeditor.utils.Logger;

import javax.swing.*;
import java.awt.*;

public class ShowImageDialog extends JDialog {
    private static final Logger LOG = Logger.getInstance(ShowImageDialog.class);

    public ShowImageDialog(Window owner, String title, ImageIcon icon) {
        super(owner, title);
        setModal(true);

        JBPanel contentPanel = new JBPanel(new BorderLayout());
        setContentPane(contentPanel);
        contentPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));

//        ImageIcon icon = new ImageIcon(imagePath);
        JBLabel imageLabel = new JBLabel(icon);

        contentPanel.add(imageLabel, BorderLayout.CENTER);
    }
}
